package com.jichangxiu.flow.server.component;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeBooleanComponent;

/**
 * AWhile:
 *
 * @author Jk
 * @create 2025-05-09 9:22
 */
@LiteflowComponent("AWhile")
public class AWhile extends NodeBooleanComponent {

    private static int count = 0;

    @Override
    public boolean processBoolean() throws Exception {
        if (count != 5) {
            count++;
            return true;
        }
        return false;
    }

}
